package it.lujunfa.aop;

import org.aspectj.lang.JoinPoint;
import org.aspectj.lang.annotation.After;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.springframework.stereotype.Component;

/**
 * ��ע�����õ�����֪ͨ��
 * @author Lenovo
 *
 */
@Component
@Aspect
public class adviceAnntation {
	@Before("execution(* it.lujunfa.aop.mathAnntation.*(..))")
    public void before(JoinPoint jp){
        System.out.println("ע������"+"--------------------"+jp.getSignature().getName());
    }
    
    @After("execution(* it.lujunfa.aop.mathAnntation.*(..))")
    public void after(JoinPoint jp){
        System.out.println("ע������"+"----------����֪ͨ----------");
    }
}
